export interface ResponseData {
   code: number,
   message: string,
   ok: boolean
}

// 定义职位的ts类型
export interface RoleData {
   id?: number,
   createTime?: string,
   updateTime?: string,
   roleName: string,
   remark?: null
}
// 全部职位数组的ts类型
export type Records = RoleData[]
// 获取全部职位接口的相应数据的ts类型
export interface AllRoleListResponseData extends ResponseData {
   data: {
      records: Records,
      total: number,
      size: number,
      current: number,
      orders: [],
      optimizeCountSql: boolean,
      hitCount: boolean,
      countId: null,
      maxLimit: null,
      searchCount: boolean,
      pages: number
   }
}

// 菜单与按钮的数据的ts类型
export interface MenuData {
   id: number,
   createTime: string,
   updateTime: string,
   pid: number,
   name: string,
   code: string,
   toCode: string,
   type: number,
   status: null,
   level: number,
   children: MenuList,
   select: boolean
}
export type MenuList = MenuData[]
// 获取菜单按钮权限接口返回的数据的ts类型
export interface AllMenuListResponseData extends ResponseData {
   data: MenuList
}